import { defineStore } from 'pinia'

const useConunterStore = defineStore('counter', {
	state: () => ({
		counter: 0
	}),
	actions: {
		increment(num = 1) {
			this.counter += num
		},
		decrement(num = 1) {
			this.counter -= num
		}
	}
})

export default useConunterStore
